programming - Libre Calc - accessing cellsWhat links here?
Dim oSheets
Dim oSheet
Dim oCell
oSheets = ThisComponent.getSheets()
For i = 0 To oSheets.getCount() - 1
    oSheet = oSheets.getByIndex(i)
    oCell = oSheet.getCellByPosition(0, 1) ' GetCell A2
    TheSum = TheSum + oCell.getValue()
Next
SumCellsAllSheets = TheSum


Use oSheet.getCellRangeByName("A2") to return a range of cells by name.

Cell = Sheet.getCellRangeByName("A1")
Cell = Sheet.getCellByPosition(c, r)
programming - Libre Calc - accessing cells
filename:programming - Libre Calc - accessing cells
filename:programming%20%2D%20Libre%20Calc%20%2D%20accessing%20cells
last edit:January 26 2013 17:13:18 (4117 days ago)
ct = 1714954384.000000 = May 05 2024 20:13:04
ft = 1359238398.000000 = January 26 2013 17:13:18
dt = 355715986.000000